package com.example.music.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@ApiModel(value = "用户实体",description = "购买音乐周边的用户实体描述")
public class User {


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public Long getuAge() {
        return uAge;
    }

    public void setuAge(Long uAge) {
        this.uAge = uAge;
    }


    public Long getuPassworld() {
        return uPassworld;
    }

    public void setuPassworld(Long uPassworld) {
        this.uPassworld = uPassworld;
    }

    public Long getuPhone() {
        return uPhone;
    }

    public void setuPhone(Long uPhone) {
        this.uPhone = uPhone;
    }

    public String getDeliveryAdd() {
        return deliveryAdd;
    }

    public void setDeliveryAdd(String deliveryAdd) {
        this.deliveryAdd = deliveryAdd;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @ApiModelProperty("用户序号")
    private Long id;
    @ApiModelProperty("用户名字")
    @NotBlank(message = "用户名不能为空")
    @Size(min = 2,max = 6,message = "用户名长度必须在2-6之间")
    private String uName;
    @ApiModelProperty("用户年龄")
    private Long uAge;


    public String getSex() {
        return Sex;
    }

    public void setSex(String sex) {
        Sex = sex;
    }

    @ApiModelProperty("用户性别")
    private String Sex;
    @ApiModelProperty("用户密码")
    private Long uPassworld;
    @ApiModelProperty("用户电话")
    private Long uPhone;
    @ApiModelProperty("用户的收货地址")
    private String deliveryAdd;
    @ApiModelProperty("用户居住的城市")
    private String city;



}
